<template>
	<view class="content">
		
		<view class="place-addr">
			<view class="addr-tp iconfont">
				<view class="place-name">
					<text>张三</text>
					<text>13333333333</text>
				</view>
				<view class="place-addr-con">
					<text>山西省太原市小店区平阳路22号</text>
				</view>				
			</view>
			<view class="addr-edit">
				<view  class="addr-edit-lf">
					<radio class="addr-radio">设为默认</radio>
				</view>
				<view  class="addr-edit-rt">
					<text>编辑</text>
					<text>删除</text>
				</view>
			</view>
		</view>
				
		<view class="place-addr">
			<view class="addr-tp iconfont">
				<view class="place-name">
					<text>张三</text>
					<text>13333333333</text>
				</view>
				<view class="place-addr-con">
					<text>山西省太原市小店区平阳路22号</text>
				</view>				
			</view>
			<view class="addr-edit">
				<view  class="addr-edit-lf">
					<radio class="addr-radio">设为默认</radio>
				</view>
				<view  class="addr-edit-rt">
					<text>编辑</text>
					<text>删除</text>
				</view>
			</view>
		</view>	
		
<!-- 		
		<view class="nodata">
			<view class="nodata-icon">
				<text class="iconfont icon-wushuju"></text>
			</view>
			<view class="nodata-tit">暂无地址</view>
		</view>

 -->
		<view class="h110"></view>
				
		<view class="detail-sel">
			<navigator url="/pages/address/edit" class="detail-btn">添加地址</navigator>
		</view>
	</view>
</template>
<style lang="scss">
page{
	background-color: $uni-bg-color-grey;
}
/* radio 选中后的样式 */
/deep/.uni-radio-input-checked{
	background-color: rgb(36,201,107)!important;
	border-color: rgb(36,201,107)!important;
	background-clip: content-box!important;
	box-sizing: border-box;
}
.content{
	.place-addr{
		margin:30rpx 20rpx;
		padding:30rpx 30rpx 20rpx;
		background-color: #fff;
		border-radius: 20rpx;
		position: relative;
		.addr-edit{
			overflow: hidden;
			border-top: 1px solid #eee;
			margin-top: 20rpx;
			padding-top:20rpx;
			line-height:50rpx;
			display: flex;
			.addr-edit-lf{
				flex:1;
				.addr-radio{
					transform: scale(0.7);
				}
			}
			.addr-edit-rt{
				flex:1;
				text-align: right;
				font-size: 28rpx;
				text{
					margin-left:30rpx;
				}
			}
		}
		.addr-tp{
			padding-left:80rpx;
			&::before{
				position: absolute;
				left:30rpx;
				top:20%;
				content:'\e600';
				font-size:60rpx;
				color: $uni-text-color-active;
			}
			.place-name{
				margin-bottom: 0.3rem;
				text{
					&:first-child{
						font-size:30rpx;
						font-weight: bold;
					}	
					&:last-child{
						margin-left: 20rpx;
						font-size:28rpx;
						color: rgb(119,119,119);
					}			
				}
			}
			.place-addr-con{
				font-size:28rpx;
			}			
		}
	}
	.nodata{
		margin-top: 40%;
		text-align: center;
		color:#ccc;
		.nodata-icon{
			text{
				font-size:160rpx;
			}
		}
		.nodata-tit{
			margin-top: 20rpx;
			font-size: 28rpx;
		}
	}
	.detail-sel{
		padding: 20rpx;
		position:fixed;
		bottom: 0;
		left: 0;
		right: 0;
		background-color: #fff;
		text-align: center;
		.detail-btn{
			height:70rpx;
			line-height: 70rpx;
			border-radius: 35rpx;
			color: #fff;
			font-size: 28rpx;
			background-color:$uni-text-color-active;
		}
	}
	.h110{
		width: 100%;
		height:110rpx;
	}	
}
</style>